home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
EDITOR
/
FUGUE_3.ARJ
/
WF.012
< prev
next >
Wrap
Text File
|
1990-10-09
|
11KB
|
242 lines
.f3 - # - Chapter 12 - Spelling Checker
.rm70
.mt5
.mb5
.pl66
.tc
.tc1
.tc 12. CHECKING YOUR SPELLING ............................#
CHAPTER 12 CHECKING YOUR SPELLING
When you use the spelling checker, Word Fugue corrects your spelling
by comparing the words in your document with those contained in its
dictionaries. If a word cannot be found, it is highlighted, and you
are prompted to edit it, display a list of suggested spellings, add it
to the personal dictionary, or ignore it.
You can add words to the main dictionary (or delete them) by running a
separate program. See the section on WFDICT in this chapter, as well
as appendix B. You should be aware that words in the main dictionary
are not case sensitive, so if you have the word david in the main
dictionary, it will match david, DAvid, daVID, and so on.
.tc Using a Personal Dictionary ........................#
Using a Personal Dictionary
You should use a personal dictionary if your documents contain
specialized words (personal names, abbreviations or words that are
case sensitive). The personal dictionary stores words that are case
sensitive, so that if you enter David, it will match only David, and
not david. This allows you to pick up such case sensitive spellings.
You can add words to your personal dictionary by using the Add Option
on the Spelling menu. See the section on Add option in this chapter.
You can also add or modify your personal dictionary by using Word
Fugue to edit it. The dictionary is named WF_AUX.DIC, and resides in
the current directory. If you modify it, you should make sure that it
has one word per line, each one starting in column one. The order of
the words in unimportant. The maximum size of the personal dictionary
is 64K or 65536 characters. Bear in mind that a dictionary this size
will take time to search, and must be searched for each word that is
checked, so it is in your interests to add words to the main
dictionary, where hashing algorithms speed up the search process.
You can create more than one personal dictionary by having a different
one in each directory you use. Word Fugue looks for a personal
dictionary in the current directory, and will always create it there.
If you have a need to use more than one personal dictionary in a
directory, you should call each one by a different name, and copy the
one you want as WF_AUX.DIC when you want to use it.
.tc Using the Spelling checker .........................#
Using the Spelling checker
To use the spelling checker, use the command Ctrl J S or Alt S, or
from the pull down menu select Miscellaneous Spelling check. Be sure
that your cursor is placed in the document you wish to have checked,
and that it is positioned at the point from which you wish to commence
checking. Also be sure that any block highlighting is turned off,
since Word Fugue will check the marked block if it is in the current
window and visible. You may occasionally want to check a marked block.
Word Fugue checks the document in the current screen window. By
default, checking proceeds from the current cursor position to the end
of the file. If a block is marked and visible, only that block will be
checked. Word Fugue will also check the contents of dot commands, since
some of them (.tc .ix .he .fo etc) actually appear in the printed
output.
Once the operation begins, Word Fugue keeps you advised of its progress
on the status line. The line and column counters tell you what part of
the document is being checked, as does the percentage indicator. These
are updated each time a new word is checked. You can abort the
operation at any time by pressing the ESC key.
When Word Fugue finds a word that it does not recognize, the screen
will be updated to highlight the word, and a popup menu will ask you
to select an option. Select by moving the bar and pressing Enter or
by pressing the first character of any of the options:
╔═════ Word not recognized ══════╗
║ Skip once ║
║ Ignore for this document ║
║ List dictionary sound-alikes ║
║ Edit from keyboard ║
║ Mark with "~" ║
║ Add to dictionary ║
║ Batch mark rest of document ║
╚════════════════════════════════╝
Fig 12.1 - Spelling Error Window
.tc1 Fig 12.1 - Spelling Error Window ......................#
Skip once
Ignore the spelling of this word in only this one instance.
Checking will resume at the next word.
Ignore for this document
Ignore the spelling of this word for the duration of the
check. If you stop checking and re-start it, the word will
be considered to be mis-spelled. Checking will resume at the
next word.
List dictionary sound-alikes
Display a list of sound-alike words from Word Fugue's main
dictionary. Select one and press <Enter>, or press <Esc> to
return to the previous menu. You can use the cursor control
keys to move around the list. If you select a new word, it
will replace the mis-spelled one. If any letters in the
mis-spelled word are in capitals, those letter positions in
the new word will also be made into capital letters.
Checking will resume at the next word.
.CP8
╔══ Alternatives ══╗
║ misspell ║
║ misspelled ║
║ misspells ║
║ misspelt ║
╚══════════════════╝
Fig 12.2 - List of Likely Words
.tc1 Fig 12.2 - List of Likely Words .......................#
Edit from the keyboard
A prompt box will appear to allow interactive editing of the
word. Press <Enter> to accept, or <Esc> to return to the
previous menu. Word Fugue will recheck the word after you
finish editing it.
Mark with "~"
Place a tilde (~) in front of the word. After the document has
been checked, you can use the Find Pattern command to
locate the marked words.
.CP10
Add to dictionary
Add the word to Word Fugue's auxiliary dictionary
(WF_AUX.DIC). A secondary menu of case selections will
appear. Press <Esc> to return to the previous menu, or
<Enter> to add to the dictionary. Checking will resume from
the next word.
╔════ Add to dictionary ═════╗
║ Lower case ║
║ First letter capitalized ║
║ Upper case ║
║ Exactly as shown ║
╚════════════════════════════╝
Fig 12.3 - Add to Local Dictionary
.tc1 Fig 12.3 - Add to Local Dictionary ....................#
.cp40
Lower case
Add the word to the Personal dictionary entirely in
lower case.
First letter capitalized
Add the word to the personal dictionary, and make the
first letter a capital, and all the others lower case.
Upper case
Add the word to the Personal dictionary entirely in
upper case.
Exactly as shown
Add the word to the Personal dictionary exactly as it
appears in the document.
Batch mark rest of document
Cancel the interactive mode normally used for
spell-checking. From this point on, all unrecognized words
are marked with tildes (~). You are not prompted, but you
can still press ESC to terminate the spell checking.
A spell-checking operation may be stopped by pressing <Esc> at the
corrections menu (once a misspelling is found) or by pressing any key
while a file is being checked. In the latter case, a prompt box will
be displayed, asking if you want to stop. Press Y to stop, N to
continue.
╔════════════════════════════╗
║ Stop spelling check? (Y/N) ║
╚════════════════════════════╝
Fig 12.4 - Stop Spell Checking prompt
.tc1 Fig 12.4 - Stop Spell Checking prompt .................#
The main dictionary (WF_MAIN.DIC) should reside in the same directory
as Word Fugue itself, otherwise Word Fugue may not be able to find it.
Word Fugue expects the dictionary to be in the Word Fugue Home
directory, but will also check directories in your path command.
The auxiliary dictionary should reside in the same directory as the
file you are spell checking. If Word Fugue does not find it, it will
create it if you request to add a word to the dictionary.
.tc Modifying the Main Dictionary ......................#
Modifying the Main Dictionary
Changes may be made to the main dictionary by using the program
WFDICT. Run this from the DOS prompt. This program will either Add or
Delete words from the dictionary, depending upon the input on its
screen. It will write a new dictionary, so as not to destroy the old
one if things go wrong. Make sure you have enough disk space for 2
copies! You may allocate the new dictionary on another drive or
directory. If the old and the new are in the same directory, and have
the same name, the old will be renamed to a .BAK extension.
The change file should have one word per line (like the auxiliary
dictionary), and should be SORTED. You can use the DOS SORT command
for this. All the words should be in lower case, since if not, they
will not sort correctly. This would cause problems of words appearing
to go missing during checking, but being found during listing of look
alikes.
You cannot add and delete in the same run, so if you have
inadvertently added a word which you subsequently find to have been
spelled incorrectly, you must first delete the erroneous word by
putting it in a change file spelled exactly as it is in the
dictionary, and directing the program to Delete words contained in the
change file. Once this run has finished, you can then add the
correctly spelled word by placing it in a change file and directing
the program to Add words from the specified change file.